<?php
	class Page extends MY_controller{

		function __construct(){
			parent::__construct();
		}

		function detail($id = 0){
			if($id > 0){
				$page_info = get_field_by_where("o2o_school_pages", "*", "id='{$id}' AND status = 1 AND school_id = '{$this->school_id}'");
				if($page_info){
					$this->smarty->assign("page_id", $id);
					$this->smarty->assign("page_info", $page_info);
					$this->smarty->display("page/detail.html");
				}else{
					show_message($_SERVER['HTTP_REFERER'], "您访问的页面不存在");
				}
			}else{
				show_message($_SERVER['HTTP_REFERER'], "您访问的页面不存在");
			}
		}
	}